#include<stdio.h>

int main()
{
	char s1[80],s2[20];
	int i=0,j=0;
	gets(s1);
	gets(s2);
	while(s1[i]!='\0')  {i++;}
	while(s2[j]!='\0')
	{
		s1[i]=s2[j];
		i++;
		j++;
	}
	s1[i]!='\0';
	puts(s1);
}
